package com.nami.store.biz.groupmembs.repository;

import com.nami.store.domain.GroupMemberDO;

import java.util.List;


/**
 * <p>
 * 群成员 服务类
 * </p>
 *
 * @author lbc
 * @since 2023-08-18
 */
public interface GroupMemberRepository {

    /**
     * get list
     *
     * @param groupId
     * @return
     */
    List<GroupMemberDO> getGrpMembers(String groupId);

    /**
     * get
     *
     * @param groupId
     * @param userId
     * @return
     */
    GroupMemberDO getGrpMember(String groupId, String userId);

    /**
     * add
     *
     * @param groupMembers
     * @return
     */
    boolean batchSave(List<GroupMemberDO> groupMembers);

    /**
     * get
     * @param groupId
     * @param userIds
     * @return
     */
    List<GroupMemberDO> getGrpMembers(String groupId, List<String> userIds);
}
